#include <stdio.h>
#include "pyparser/pypararser.h"
#include "core/core.h"
#include "jit/asm.h"
#include "jit/jit.h"
#include "gc/gc.h"

int main(int argc, char *argv[]){
  void (*start)();
  FILE* handle = fopen(argv[1], "r");
  mod_ty mod = PyASTFromFile(handle, argv[1]);

  init_core();
  init_asm();

  start = compile(mod);
  init_gc();
  start();
}
